<script type="text/javascript" src="${base}/js/bootstrap.min.js"></script>
<script type="text/javascript" src="${base}/js/jquery-1.8.0.min.js"></script>

<script type="text/javascript">
  function succeed(){
  
  }
  

</script>

<form method="get" action="${base}/tender/index.htm" >
还款日期：<input type="text" name="tenderDate"  />
</br>

<input type="submit" />

<#setting datetime_format="yyyy-MM-dd HH:mm"/>

<div class="container-fluid">
	<div class="row-fluid">
<table class="table table-striped table-bordered">
<tr><th>还款ID</th><th>贷款ID</th><th>子贷款ID</th><th>子贷款金额</th><th>用户ID</th><th>第几期</th><th>还款时间</th><th>还款金额</th><th>还款本金</th>
<th>已还金额</th><th>已还本金</th><th>状态</th><th></th>

</tr>
<#list list as item>
  <tr>
  <td>${item.rid}</td>
  <td>${item.lid}</td>
  <td>${item.slid}</td>
  <td>${item.samount}</td>
  <td>${item.uid}</td>
  <td>${item.no}</td>
  <td>${item.time?number?number_to_datetime}</td>
  <td>${item.repayAmount}</td>
  <td>${item.principal}</td>
  <td>${item.returnAmount}</td>
  <td>${item.returnPrincipal}</td>
  <td>
  <#if item.status == 11>
         还款中
        <#elseif item.status==21>
        还款成功
             <#elseif item.status==31>
             系统已代还
  </#if>
  
  </td>
  <td><a href="${base}/tender/pay.html?rid=${item.rid}">Pay</a></td>
</tr>
</#list>
</table>